package com.landiao.mapper;

import org.apache.ibatis.annotations.Param;

import com.landiao.entities.CouponReceive;

public interface CouponReceiveMapper extends BaseMapper<CouponReceive,String>{
    int deleteByPrimaryKey(String couponReceiveId);

    int insert(CouponReceive record);

    int insertSelective(CouponReceive record);

    CouponReceive selectByPrimaryKey(String couponReceiveId);

    int updateByPrimaryKeySelective(CouponReceive record);

    int updateByPrimaryKey(CouponReceive record);
    
    CouponReceive selectByVipIdAndCouponId(@Param("vipId")String vipId,@Param("couponId")String couponId);
    
    CouponReceive selectValidByVipIdAndServiceItemId(@Param("vipId")String vipId,@Param("serviceItemId")String serviceItemId);
}